package com.yumei.trader.gym.object;

import android.annotation.SuppressLint;

import org.json.JSONObject;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by wykai on 16/1/29.
 */
public abstract class BaseObj implements Serializable {

    public abstract void parseJson(JSONObject jsonObj) throws Exception;



    public String getTime(long time){
        @SuppressLint("SimpleDateFormat") SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
        Date date =new Date(time);
        return format.format(date);
    }
}

